package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author stone
 * @date 2022/09/03 09:08
 */
@RestController
public class HelloController {

    //localhost:8080/user/login?username=songge&password=niupi
    //localhost:8080/user/login?user=songge
    @RequestMapping("user/login")
    public BaseRespVo login(User user) {
        return BaseRespVo.ok();
    }
}
